package com.hgh.javase13_1;

import java.util.Set;
import java.util.TreeSet;

public class TreeSetTest {

	public static void main(String[] args) {
		Set<String> treeSet = new TreeSet<>();
		treeSet.add("hgh");
		treeSet.add("dst");
		treeSet.add("dst");
		treeSet.add("laozi");
		System.out.println(treeSet.toString());// [dst, hgh, laozi]
	}
}
